from selenium import webdriver  # 导入webdriver包

#初始化不同浏览器的driver
def init_driver(browerTpe="chrome"):
    driver=None
    if browerTpe=="chrome":
        driver = webdriver.Chrome()
    elif browerTpe=='firefox':
        driver=webdriver.Firefox()
    driver.maximize_window()  # 最大化浏览器
    driver.implicitly_wait(10)
    return driver